package pos.Configuration;

import javax.media.j3d.*;
import javax.vecmath.*;
import pos.utils.*;
/**
 *
 * @author plus
 */
public class ConfigSurrendings extends BranchGroup{
    private static TransformGroup TGBackground=null;

    public ConfigSurrendings() {
        this.setCapability(ALLOW_DETACH);
        if (TGBackground==null)
            initObjects();
        this.addChild(TGBackground);
    }
    
    private void initObjects(){
        Transform3D t3dBackground=new Transform3D();                            //载入背景图片
        t3dBackground.set(new Vector3d(0,0,0));
        TGBackground= new TransformGroup(t3dBackground);
        TGBackground.addChild(ObjectFactory.createTexturedSurface(
                200f, 150f,-240, new Color3f(1,1,1), 
                0f, PathRes.getPath("Image.Config.Back"),true,false));
    }
    
}
